<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: DesignSpaceExplorer.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_design_space_explorer_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">DesignSpaceExplorer.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_design_space_explorer_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.Text;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespace_system_sharp_1_1_d_s_e.html">   26</a></span>&#160;<span class="keyword">namespace </span>SystemSharp.DSE</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">   31</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">Alternative</a></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    {</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html#a4f90a184d6cc40dbbedfadf49ee0e94e">   36</a></span>&#160;        <span class="keyword">public</span> Action StepAction { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html#a570e86aef7ab5e2f2ce27ac1e8ef0cd9">   41</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">string</span> Name { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">Alternative</a>(Action stepAction, <span class="keywordtype">string</span> name)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            StepAction = stepAction;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            Name = name;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">   53</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">DSETask</a></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">private</span> List&lt;Alternative&gt; _alternatives = <span class="keyword">new</span> List&lt;Alternative&gt;();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html#a4690ad9d414cf4d15c1fe9d1488e76db">   60</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">string</span> Name { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">DSETask</a>(<span class="keywordtype">string</span> name)</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            Name = name;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html#a50ffd6b054337ebf8f6972b73b49d41d">   73</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">Alternative</a> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html#a50ffd6b054337ebf8f6972b73b49d41d">AddAlternative</a>(Action stepAction, <span class="keywordtype">string</span> name)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            var alt = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">Alternative</a>(stepAction, name);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            _alternatives.Add(alt);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            <span class="keywordflow">return</span> alt;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;Alternative&gt; Alternatives</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html#a0ba61d3975d1616402f4d8e7073e8ca9">   84</a></span>&#160;        {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> _alternatives.AsEnumerable(); }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer.html">   92</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer.html">IDSEObserver</a></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordtype">void</span> NotifySpaceSize(<span class="keywordtype">long</span> totalNumAlts);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordtype">void</span> OnBeginFlow(IEnumerable&lt;Alternative&gt; activeAlts, <span class="keywordtype">long</span> progress);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordtype">void</span> OnBeginTask(<a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">DSETask</a> task, <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">Alternative</a> alt, <span class="keywordtype">long</span> progress);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordtype">void</span> OnEndOfDSE();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html">  135</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html">DesignSpaceExplorer</a></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keyword">private</span> List&lt;DSETask&gt; _tasks = <span class="keyword">new</span> List&lt;DSETask&gt;();</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a75e7a015b8923e0c2b945e6919a82bd2">  144</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">DSETask</a> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a75e7a015b8923e0c2b945e6919a82bd2">AddTask</a>(<span class="keywordtype">string</span> name)</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            var task = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">DSETask</a>(name);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            _tasks.Add(task);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            <span class="keywordflow">return</span> task;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a12a80ada788dd24613c82dee84265731">  156</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;Alternative&gt; <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a12a80ada788dd24613c82dee84265731">Enumerate</a>(<a class="code" href="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer.html">IDSEObserver</a> obs)</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        {</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            var enums = _tasks.Select(t =&gt; t.Alternatives.GetEnumerator()).ToArray();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;            <span class="keywordtype">bool</span> emptyAlts = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            <span class="keywordflow">foreach</span> (var iter <span class="keywordflow">in</span> enums)</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                <span class="keywordflow">if</span> (!iter.MoveNext())</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                    emptyAlts = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            <span class="keywordflow">if</span> (emptyAlts)</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                yield <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            <span class="keywordtype">long</span> progress = 0;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            <span class="keywordtype">bool</span> end = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <span class="keywordflow">do</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            {</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                <span class="keywordflow">if</span> (obs != null)</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                    obs.OnBeginFlow(enums.Select(iter =&gt; iter.Current), progress);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; enums.Length; i++)</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                    <span class="keywordflow">if</span> (obs != null)</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                        obs.OnBeginTask(_tasks[i], enums[i].Current, progress++);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                    yield <span class="keywordflow">return</span> enums[i].Current;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                }</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                end = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                <span class="keywordflow">foreach</span> (var iter <span class="keywordflow">in</span> enums)</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                    <span class="keywordflow">if</span> (iter.MoveNext())</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                    {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                        end = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                    }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                    {</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                        iter.Reset();</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                        iter.MoveNext();</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                    }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            } <span class="keywordflow">while</span> (!end);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            <span class="keywordflow">if</span> (obs != null)</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                obs.OnEndOfDSE();</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a8f97499c35ab9d1e7b51381a589f945d">  209</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a8f97499c35ab9d1e7b51381a589f945d">Explore</a>(<a class="code" href="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer.html">IDSEObserver</a> obs = null)</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            <span class="keywordflow">if</span> (obs != null)</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            {</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;                <span class="keywordtype">long</span> spaceSize = Enumerate(null).LongCount();</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                obs.NotifySpaceSize(spaceSize);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;            }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            <span class="keywordflow">foreach</span> (var alt <span class="keywordflow">in</span> Enumerate(obs))</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                alt.StepAction();</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        }</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    }</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task_html"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html">SystemSharp.DSE.DSETask</a></div><div class="ttdoc">Encapsulates a single step during design-space exploration, consisting of one or more alternatives...</div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00053">DesignSpaceExplorer.cs:53</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer_html_a8f97499c35ab9d1e7b51381a589f945d"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a8f97499c35ab9d1e7b51381a589f945d">SystemSharp.DSE.DesignSpaceExplorer.Explore</a></div><div class="ttdeci">void Explore(IDSEObserver obs=null)</div><div class="ttdoc">Performs a design-space exploration </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00209">DesignSpaceExplorer.cs:209</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer_html_a12a80ada788dd24613c82dee84265731"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a12a80ada788dd24613c82dee84265731">SystemSharp.DSE.DesignSpaceExplorer.Enumerate</a></div><div class="ttdeci">IEnumerable&lt; Alternative &gt; Enumerate(IDSEObserver obs)</div><div class="ttdoc">Enumerates all possible sequences of alternatives </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00156">DesignSpaceExplorer.cs:156</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task_html_a50ffd6b054337ebf8f6972b73b49d41d"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_d_s_e_task.html#a50ffd6b054337ebf8f6972b73b49d41d">SystemSharp.DSE.DSETask.AddAlternative</a></div><div class="ttdeci">Alternative AddAlternative(Action stepAction, string name)</div><div class="ttdoc">Adds an alternative to this task </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00073">DesignSpaceExplorer.cs:73</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_alternative_html"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_alternative.html">SystemSharp.DSE.Alternative</a></div><div class="ttdoc">Encapsulates a possible task action during design-space exploration. </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00031">DesignSpaceExplorer.cs:31</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer_html"><div class="ttname"><a href="interface_system_sharp_1_1_d_s_e_1_1_i_d_s_e_observer.html">SystemSharp.DSE.IDSEObserver</a></div><div class="ttdoc">An exploration observer gets notified about all currently performed actions during design-space explo...</div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00092">DesignSpaceExplorer.cs:92</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer_html"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html">SystemSharp.DSE.DesignSpaceExplorer</a></div><div class="ttdoc">Provides capabilities for configuring and exploring a design space. </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00135">DesignSpaceExplorer.cs:135</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer_html_a75e7a015b8923e0c2b945e6919a82bd2"><div class="ttname"><a href="class_system_sharp_1_1_d_s_e_1_1_design_space_explorer.html#a75e7a015b8923e0c2b945e6919a82bd2">SystemSharp.DSE.DesignSpaceExplorer.AddTask</a></div><div class="ttdeci">DSETask AddTask(string name)</div><div class="ttdoc">Adds the next task to this instance. </div><div class="ttdef"><b>Definition:</b> <a href="_design_space_explorer_8cs_source.html#l00144">DesignSpaceExplorer.cs:144</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_d3abba2f0a379edddc52578b4eee9db1.html">DSE</a></li><li class="navelem"><a class="el" href="_design_space_explorer_8cs.html">DesignSpaceExplorer.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:38 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
